package fr.insalyon.sims.broadcast.network;

/**
 * Interface managing stream reception. When it receives the data, it passes this data to DataListener.
 * 
 * @author GONZALEZ Silvia, GOTTERO Jeremie, SATTAYAKAWEE Nutchanat
 *
 */
public interface IStreamReceiver extends IStream {
	// ------------------------------------------------------- CONSTANTS -- //
	// --------------------------------------------------------- METHODS -- //
	
	/**
	 * Adds a data listener to the data listener list
	 * @param listener data listener to be added
	 */
	public void addDataListener(DataListener listener);
	/**
	 * Removes a data listener from the data listener list.
	 * It does nothing if listener doesn't exist in the list. 
	 * @param listener data listener to be removed
	 */
	public void removeDataListener(DataListener listener);
}
